package com.example.demo.dao;

import com.example.demo.model.Nutritionalvalue;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface NutritionalvalueDao {
    int deleteByPrimaryKey(Integer energy);

    int insert(Nutritionalvalue record);

    int insertSelective(Nutritionalvalue record);

    Nutritionalvalue selectByPrimaryKey(Integer energy);

    int updateByPrimaryKeySelective(Nutritionalvalue record);

    int updateByPrimaryKey(Nutritionalvalue record);

    Nutritionalvalue findByName(String name);
}